package com.maozzi.service.acl.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限 - 角色对应权限
 *
 * @author maozi
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("acl_role_permission")
public class RolePermission implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 记录创建日期
     */
    private Date createDate;

    /**
     * 记录创建人
     */
    private String createBy;

    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 权限ID
     */
    private Long permissionId;
}
